#ifndef __LP_GSENSOR_H
#define __LP_GSENSOR_H

#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>

#ifdef __cplusplus
extern "C" {
#endif

/* 休眠检测使能 */
bool gsensor_sleep_enable(void);
/* 休眠检测 */
bool gsensor_sleep_check(void);
/**
 * @brief 进入休眠配置
 * @return unsigned int 
 */
unsigned int gsensor_sleep(void);
/**
 * @brief 退出休眠配置
 * @param  type             My Param doc
 */
void gsensor_wakeup(wakeup_source_e wakeup_type);

#ifdef __cplusplus
}
#endif

#endif // __LP_GSENSOR_H